/**
 * 
 */
package foo.sample;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import foo.sample.service.BookService;

/**
 * 不推荐此法：
 * 需要严格遵守服务端的接口类及涉及实体类的定义。
 * @author charlie
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)  
@ContextConfiguration(locations={"classpath:/applicationContext.xml"})
@WebAppConfiguration
public class XfireClientTest3 {
	public Log logger = LogFactory.getLog(getClass());
	
	@Resource
	BookService bookService;

	@Test
	public void test() {
		String a = bookService.sayHello("x");
		logger.info("receive: " + a);
	}

}
